<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:template match="/menus">
		<div id="accordion">
			<xsl:for-each select="menu">
				<div>
					<h3>
						<a xsl:use-attribute-sets="a">
							<xsl:value-of select="text"></xsl:value-of>
						</a>
					</h3>
					<div>
						<xsl:for-each select="submenu">
							<div xsl:use-attribute-sets="div">
								<a xsl:use-attribute-sets="a">
									<xsl:value-of select="text" disable-output-escaping="yes"/>
								</a>
							</div>
						</xsl:for-each>
					</div>
				</div>
			</xsl:for-each>
		</div>
	</xsl:template>
	<xsl:attribute-set name="a">
		<xsl:attribute name="href"><xsl:value-of select="url"></xsl:value-of></xsl:attribute>
		<xsl:attribute name="title"><xsl:value-of select="describe"></xsl:value-of></xsl:attribute>
		<xsl:attribute name="target"><xsl:value-of select="target"></xsl:value-of></xsl:attribute>
	</xsl:attribute-set>
	<xsl:attribute-set name="div">
		<xsl:attribute name="id"><xsl:value-of select="pagecode"></xsl:value-of></xsl:attribute>
	</xsl:attribute-set>
</xsl:stylesheet>